//
//  tryThrowCatch.hpp
//  learnC++
//
//  Created by liuzhibing on 2018/6/24.
//  Copyright © 2018年 yunfan.com. All rights reserved.
//

#ifndef tryThrowCatch_hpp
#define tryThrowCatch_hpp

#include <stdio.h>
#include <iostream>

class CatchError {
    
private:
    int m_value;
    
public:
    CatchError();
    
    void base();
    
    //try块外面抛异常
    void outOfThrow(int x);
    
};
//只有在try块内引发的异常才有资格被捕获

#endif /* tryThrowCatch_hpp */
